//
//  LoadingAlert.m
//  Seizure
//
//  Created by student on 3/19/12.
//  
//  Alert to display a loading/waiting... dialog 

#import "LoadingAlert.h"

@implementation LoadingAlert
@synthesize indicator;


-(id) init {
    
    if (self == [super init]){
        indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:
                                              UIActivityIndicatorViewStyleWhiteLarge];
        [self addSubview:indicator];
    }
    
    return self;
}


-(void) willPresentAlertView:(UIAlertView *)alertView {
    
    indicator.center = CGPointMake(self.bounds.size.width / 2, self.bounds.size.height - 50);
    [indicator startAnimating];
}

@end
